﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel;
using System.Windows;

namespace BaseTypesLib.TypeConverters
{
    public class FieldMarginConverter:TypeConverter
    {
        ThicknessConverter conv;
        public FieldMarginConverter()
        {
            conv = new ThicknessConverter();
        }
        public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType)
        {
            return conv.CanConvertFrom(context, sourceType);
        }
        public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType)
        {
            return conv.CanConvertTo(context, destinationType);
        }
        public override object ConvertFrom(ITypeDescriptorContext context, System.Globalization.CultureInfo culture, object value)
        {
            return conv.ConvertFrom(context, culture, value);
        }
        public override object ConvertTo(ITypeDescriptorContext context, System.Globalization.CultureInfo culture, object value, Type destinationType)
        {
            return conv.ConvertTo(context, culture, value, destinationType);
        }
    }
}
